package com.hh.baseframework.util.http;

import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

public class Request {

	public static Map<String, Object> getParamMapByRequest(
			HttpServletRequest request) {
		Map<String, Object> paraMap = new HashMap<String, Object>();
		Enumeration enumeration = request.getParameterNames();
		while (enumeration.hasMoreElements()) {
			String name = (String) enumeration.nextElement();
			Object value = request.getParameter(name);
			paraMap.put(name, value);
		}
		return paraMap;
	}
}
